<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <title>编辑技能信息 </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <style>
        .form-items-show {
            display: none;
        }
    </style>
</head>

<body ng-app="app" ng-controller="addContextController">

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">

            <div class="layui-col-md11">

                <div class="layui-card">
                    <div class="layui-card-header"><a href="javascript:history.go(-1);">返回上一页</a> / 添加技能测试数据</div>
                    <table class="layui-table">
                        <thead>
                            <tr>
                                <th>名字</th>
                                <th>性别</th>
                                <th>年龄</th>
                                <th>生日</th>
                                <th>电话</th>
                                <th>便签</th>
                                <th>加入时间</th>
                                <th>最后一次修改时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td> <span id="userinfosid">{{intfo.name}}</span></td>
                                <td><span id="userinfoname">{{intfo.sex}}</span></td>
                                <td><span id="userinfosex">{{intfo.age}}</span></td>
                                <td> <span id="userinfophone">{{intfo.birthday}}</span></td>
                                <td><span id="userinfobirthday">{{intfo.phone}}</span></td>
                                <td><span id="userinfostudentType">{{intfo.typeStudent.names}}</span></td>
                                <td><span id="userinfostudentType">{{intfo.createTime}}</span></td>
                                <td>{{intfo.lastUpdateTime}}</td>
                            </tr>

                        </tbody>
                    </table>
                    <div class="layui-card-body">
                        <form class="layui-form" action="" lay-filter="component-form-element" id="component-form-group">
                            <div class="layui-row layui-col-space10 layui-form-item">

                                <div class="layui-col-lg6">
                                    <label class="layui-form-label">技能类型测试选择</label>
                                    <div class="layui-input-block">
                                        <select name="conditionType" lay-verify="required" lay-filter="aihao" id="conditionType" ng-model="conType" ng-change="getConditionTypeContext()">
                                          <option value=''>无</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-col-lg6">

                                    <div class="layui-input-block">
                                        <button class="layui-btn layui-btn-warm" type="button" ng-click="getleveaKillContext()">选中确定</button>
                                        <a class="layui-btn layui-btn-danger" href="../../component/form/addcondition-type.html">+增加技能测试类型</a>
                                    </div>

                                </div>

                            </div>


                            <div class="form-items-show">



                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">{{LeavekillStudent.height}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="height" lay-verify="required" placeholder="保留两位小数" id="height" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <label class="layui-form-label">{{LeavekillStudent.weight}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="width" lay-verify="required" id="width" placeholder="保留两位小数" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">{{LeavekillStudent.abduction}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="abduction" lay-verify="required" id="abduction" placeholder="保留两位小数" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">{{LeavekillStudent.fingerSpan}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="fingerSpan" lay-verify="required" id="fingerSpan" placeholder="保留两位小数" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>


                                <div class="layui-form-item">
                                   
                                    <div class="layui-inline">
                                        <label class="layui-form-label " style="color: firebrick;" >{{LeavekillStudent.itemContextOne}}</label>
                                        
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextOneFirst}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="itemContextOneFirst" placeholder="保留两位小数" id="itemContextOneFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextOneSecond}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="itemContextOneSecond" placeholder="保留两位小数" id="itemContextOneSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                   
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextOneThirdly}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="itemContextOneThirdly" placeholder="保留两位小数" id="itemContextOneThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                   
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextOneFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextOneFourthly}}</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="itemContextOneFourthly" placeholder="保留两位小数" id="itemContextOneFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>

                                  
                                </div>

                                <div class="layui-form-item">
                                    
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="color: firebrick;">{{LeavekillStudent.itemContextTow}}</label>
                                         
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.itemContextTowFirst}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextTowFirst" placeholder="保留两位小数" id="itemContextTowFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.itemContextTowSecond}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextTowSecond" placeholder="保留两位小数" id="itemContextTowSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.itemContextTowThirdly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextTowThirdly" placeholder="保留两位小数" id="itemContextTowThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextTowFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.itemContextTowFourthly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextTowFourthly" placeholder="保留两位小数" id="itemContextTowFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                  
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="color: firebrick;">{{LeavekillStudent.itemContextThree}}</label>
                                        
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextThreeFirst}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextThreeFirst" placeholder="保留两位小数" id="itemContextThreeFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextThreeSecond}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextThreeSecond" placeholder="保留两位小数" id="itemContextThreeSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextThreeThirdly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextThreeThirdly" placeholder="保留两位小数" id="itemContextThreeThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextThreeFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextThreeFourthly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextThreeFourthly" placeholder="保留两位小数" id="itemContextThreeFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                </div>


                                <div class="layui-form-item">
                                    
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="color: firebrick;" >{{LeavekillStudent.itemContextFroth}}</label>
                                         
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFrothFirst}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFrothFirst" placeholder="保留两位小数" id="itemContextFrothFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFrothSecond}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFrothSecond" placeholder="保留两位小数" id="itemContextFrothSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFrothThirdly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFrothThirdly" placeholder="保留两位小数" id="itemContextFrothThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextFrothFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFrothFourthly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFrothFourthly" placeholder="保留两位小数" id="itemContextFrothFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                </div>


                                <div class="layui-form-item">
                                    
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="color: firebrick;" >{{LeavekillStudent.itemContextFive}}</label>
                                        
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFiveFirst}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFiveFirst" placeholder="保留两位小数" id="itemContextFiveFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFiveSecond}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFiveSecond" placeholder="保留两位小数" id="itemContextFiveSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFiveThirdly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFiveThirdly" placeholder="保留两位小数" id="itemContextFiveThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextFiveFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextFiveFourthly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextFiveFourthly" placeholder="保留两位小数" id="itemContextFiveFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>


                                </div>


                                <div class="layui-form-item">
                                   
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="color: firebrick;" >{{LeavekillStudent.itemContextSix}}</label>
                                        
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSixFirst}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSixFirst" placeholder="保留两位小数" id="itemContextSixFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSixSecond}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSixSecond" placeholder="保留两位小数" id="itemContextSixSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSixThirdly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSixThirdly" placeholder="保留两位小数" id="itemContextSixThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextSixFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSixFourthly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSixFourthly" placeholder="保留两位小数" id="itemContextSixFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                </div>


                                <div class="layui-form-item">
                                    
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="color: firebrick;">{{LeavekillStudent.itemContextSeven}}</label>
                                        
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSevenFirst}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSevenFirst" placeholder="保留两位小数" id="itemContextSevenFirst" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSevenSecond}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSevenSecond" placeholder="保留两位小数" id="itemContextSevenSecond" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSevenThirdly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSevenThirdly" placeholder="保留两位小数" id="itemContextSevenThirdly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline" ng-if="LeavekillStudent.itemContextSevenFourthly!=null">
                                        <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.itemContextSevenFourthly}}</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="itemContextSevenFourthly" placeholder="保留两位小数" id="itemContextSevenFourthly" lay-verify="required" class="layui-input">
                                        </div>
                                    </div>
                                </div>



                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" type="button" lay-submit lay-filter="component-form-element">保存提交</button>
                                        <a class="layui-btn layui-btn-primary" href="javascript:history.go(-1);">返回</a>
                                    </div>
                                </div>
                            </div>
                        </form>



                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="../../../layuiadmin/jquery/jquery-1.11.1.min.js"></script>
    <script src="../../../layuiadmin/url.js"></script>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/jquery/angular.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form'], function() {
            var $ = layui.$,
                admin = layui.admin,
                element = layui.element,
                form = layui.form;

            form.render(null, 'component-form-element');
            element.render('breadcrumb', 'breadcrumb');
            //获取url地址栏
            $(function() {
                var arr = [];
                $.ajax({
                    url: applicationUrl + 'leavea/api/list',
                    type: "POST",
                    dataType: "json",
                    success: function(data) {
                        arr.push(data);

                        for (var i = 0; i < data.length; i++) {
                            $("#conditionType").append("<option value='" + data[i].leid + "'>" + data[i].leid + "</option>");
                        }
                        form.render(); //注意渲染页面表单，否则不显示数据
                    }
                });
            });


            function getQueryVariable(variable) {
                var query = window.location.search.substring(1);
                var vars = query.split("&");
                for (var i = 0; i < vars.length; i++) {
                    var pair = vars[i].split("=");
                    if (pair[0] == variable) {
                        return pair[1];
                    }
                }
                return (false);
            }

            form.on('submit(component-form-element)', function(data) {
                var leid = getQueryVariable("leId");
                //  layer.msg(JSON.stringify(data.field));

                var height = data.field.height;
                var width = data.field.width;
                var abduction = data.field.abduction;
                var fingerSpan = data.field.fingerSpan;
               
                var itemContextOneFirst = data.field.itemContextOneFirst;
                var itemContextOneSecond = data.field.itemContextOneSecond;
                var itemContextOneThirdly = data.field.itemContextOneThirdly;
                var itemContextOneFourthly = data.field.itemContextOneFourthly;

                var itemContextTowFirst = data.field.itemContextTowFirst;
                var itemContextTowSecond = data.field.itemContextTowSecond;
                var itemContextTowThirdly = data.field.itemContextTowThirdly;
                var itemContextTowFourthly = data.field.itemContextTowFourthly;

                var itemContextThreeFirst = data.field.itemContextThreeFirst;
                var itemContextThreeSecond = data.field.itemContextThreeSecond;
                var itemContextThreeThirdly = data.field.itemContextThreeThirdly;
                var itemContextThreeFourthly = data.field.itemContextThreeFourthly;

                var itemContextFrothFirst = data.field.itemContextFrothFirst;
                var itemContextFrothSecond = data.field.itemContextFrothSecond;
                var itemContextFrothThirdly = data.field.itemContextFrothThirdly;
                var itemContextFrothFourthly = data.field.itemContextFrothFourthly;

                var itemContextFiveFirst = data.field.itemContextFiveFirst;
                var itemContextFiveSecond = data.field.itemContextFiveSecond;
                var itemContextFiveThirdly = data.field.itemContextFiveThirdly;
                var itemContextFiveFourthly = data.field.itemContextFiveFourthly;

                var itemContextSixFirst = data.field.itemContextSixFirst;
                var itemContextSixSecond = data.field.itemContextSixSecond;
                var itemContextSixThirdly = data.field.itemContextSixThirdly;
                var itemContextSixFourthly = data.field.itemContextSixFourthly;

                var itemContextSevenFirst = data.field.itemContextSevenFirst;
                var itemContextSevenSecond = data.field.itemContextSevenSecond;
                var itemContextSevenThirdly = data.field.itemContextSevenThirdly;
                var itemContextSevenFourthly = data.field.itemContextSevenFourthly;

                var killContextId = $("#conditionType").val();
                var sid = getQueryVariable("sid");
                $.ajax({
                    type: "POST",
                    dataType: "json",
                    url: applicationUrl + 'LevelkillStudent/api/insert',
                    data:{
                        killContextId:killContextId,  sid:sid,height:height,width:width,
                        abduction:abduction,fingerSpan:fingerSpan,
                        itemContextOneFirst:itemContextOneFirst,itemContextOneSecond:itemContextOneSecond,
                        itemContextOneThirdly:itemContextOneThirdly,itemContextOneFourthly:itemContextOneFourthly,
                        
                        itemContextTowFirst:itemContextTowFirst,itemContextTowSecond:itemContextTowSecond,
                        itemContextTowThirdly:itemContextTowThirdly,itemContextTowFourthly:itemContextTowFourthly,

                        itemContextThreeFirst:itemContextThreeFirst,itemContextThreeSecond:itemContextThreeSecond,
                        itemContextThreeThirdly:itemContextThreeThirdly,itemContextThreeFourthly:itemContextThreeFourthly,

                        itemContextFrothFirst:itemContextFrothFirst,itemContextFrothSecond:itemContextFrothSecond,
                        itemContextFrothThirdly:itemContextFrothThirdly,itemContextFrothFourthly:itemContextFrothFourthly,

                        itemContextFiveFirst:itemContextFiveFirst,itemContextFiveSecond:itemContextFiveSecond,
                        itemContextFiveThirdly:itemContextFiveThirdly,itemContextFiveFourthly:itemContextFiveFourthly,

                        itemContextSixFirst:itemContextSixFirst,itemContextSixSecond:itemContextSixSecond,
                        itemContextSixThirdly:itemContextSixThirdly,itemContextSixFourthly:itemContextSixFourthly,

                        itemContextSevenFirst:itemContextSevenFirst,itemContextSevenSecond:itemContextSevenSecond,
                        itemContextSevenThirdly:itemContextSevenThirdly,itemContextSevenFourthly:itemContextSevenFourthly

                    } ,
                    success: function(result) {
                        layer.msg(result.msg);
                        $("#component-form-group")[0].reset();
                        layui.form.render();
                    },
                    error: function(result) {
                        layer.msg(result.msg);

                    } 

                }) 
                return false;
            });
        });





        var app = angular.module('app', []);
        app.controller('addContextController', ['$scope', '$http', function($scope, $http) {
            //获取url地址栏
            function getQueryVariable(variable) {
                var query = window.location.search.substring(1);
                var vars = query.split("&");
                for (var i = 0; i < vars.length; i++) {
                    var pair = vars[i].split("=");
                    if (pair[0] == variable) {
                        return pair[1];
                    }
                }
                return (false);
            }

            $scope.getleveaKillContext = function() {
                var leid = $("#conditionType").val();


                if (leid != "") {
                    console.log("ok");
                    $(".form-items-show").attr("style", "display:block");
                    $http({
                        method: 'GET',
                        url: applicationUrl + 'leavea/api/byid',
                        headers: {
                            "Content-Type": 'application/x-www-form-urlencoded'
                        },
                        params: {
                            leid: leid
                        },
                    }).success(function(result) {
                        $scope.LeavekillStudent = result.data;

                    }).error(function(data, status) {
                        console.log(" ");
                    });
                } else {
                    console.log("no");
                }


            };
            $scope.getleveaKillContext();
            $scope.getintfor = function() {

                var sid = getQueryVariable("sid");
                if (sid != "") {
                    console.log("ok");

                    $http({
                        method: 'GET',
                        url: applicationUrl + 'student/api/byid',
                        headers: {
                            "Content-Type": 'application/x-www-form-urlencoded'
                        },
                        params: {
                            sid: sid
                        },
                    }).success(function(result) {
                        $scope.intfo = result.data;

                    }).error(function(data, status) {
                        console.log(" ");
                    });
                } else {
                    console.log("no");
                }
            };
            $scope.getintfor();


        }]);
    </script>
</body>

</html>